import Vue from "vue";

//用于给按钮授权的查询方法
Vue.mixin({
  methods: {
    hasAuth(perm) {
      var authority = this.$store.state.menus.permList;

      return authority.indexOf(perm) > -1;
    }
  }
});
